//存token
export const setToken = (token: string) => {
  console.log('setToken', token)
  localStorage.setItem("TOKEN", token)
}
export const getToken = () => {
  return localStorage.getItem("TOKEN")
}
export const removeToken = () => {
  localStorage.removeItem("TOKEN")
}
//暗黑主题
export const setDark = (flag: boolean) => {
  localStorage.setItem("DARK", JSON.stringify(flag))
}
export const getDark = () => {
  return JSON.parse(localStorage.getItem("DARK") as string)
}
//颜色主题
